package ioStream;

import java.io.Serializable;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2024/09/21
 */
public class User implements Serializable {
    //序列化版本号
    private static final long serialVersionUID = 1L;
    private int age;
    public User() {
    }

    public User(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                '}';
    }
}
